/*
 * Copyright (c) 2023 huipei.x
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.xphsc.kubernetes.core.query;

import io.kubernetes.client.openapi.models.V1Namespace;
/**
 * {@link }
 * @author <a href="xiongpeih@163.com">huipei.x</a>
 * @description: Namespace Body
 * @since 1.0.0
 */
public class NamespaceBody {

    private V1Namespace v1Namespace;
    private   String pretty;
    private String dryRun;
    private String fieldManager;

    public static NamespaceBody.Builder builder() {
        return new NamespaceBody.Builder();
    }

    private NamespaceBody(NamespaceBody.Builder builder) {
        this.v1Namespace = builder.v1Namespace;
        this.pretty = builder.pretty;
        this.dryRun = builder.dryRun;
        this.fieldManager = builder.fieldManager;

    }


    public static class Builder {
        private V1Namespace v1Namespace;
        private   String pretty;
        private String dryRun;
        private String fieldManager;


        public Builder() {
        }
        public <T> NamespaceBody.Builder v1Namespace(V1Namespace v1Namespace) {
            this.v1Namespace = v1Namespace;
            return this;
        }
        public <T> NamespaceBody.Builder pretty(String pretty) {
            this.pretty = pretty;
            return this;
        }

        public <T> NamespaceBody.Builder dryRun(String dryRun) {
            this.dryRun = dryRun;
            return this;
        }

        public <T> NamespaceBody.Builder fieldManager(String fieldManager) {
            this.fieldManager = fieldManager;
            return this;
        }


        public NamespaceBody build() {
            return new NamespaceBody(this);
        }
    }

    public V1Namespace v1Namespace() {
        return v1Namespace;
    }

    public String pretty() {
        return pretty;
    }

    public String dryRun() {
        return dryRun;
    }

    public String fieldManager() {
        return fieldManager;
    }
}
